package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.AdSensitiveDto;
import com.heima.model.admin.dtos.AdSensitiveListDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author Franky
 * @version 1.0
 * @project heima-leadnews-shizhan
 * @description
 * @date 2023/9/17 10:12:16
 */
public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 根据id删除敏感词
     * @param id
     * @return {@link ResponseResult}
     */
    ResponseResult del(Integer id);

    /**
     * 查询敏感词列表
     * @param sensitiveListDto
     * @return {@link ResponseResult}
     */
    ResponseResult queryList(AdSensitiveListDto sensitiveListDto);

    /**
     * 新增敏感词
     * @param sensitiveDto
     * @return {@link ResponseResult}
     */
    ResponseResult add(AdSensitiveDto sensitiveDto);

    /**
     *更新敏感词
     * @param sensitiveDto
     * @return {@link ResponseResult}
     */
    ResponseResult updateSensitive(AdSensitiveDto sensitiveDto);
}
